using battlenet.wow.rt.domain.objects;
using battlenet.wow.rt.sdk.data.dto;
using battlenet.wow.rt.sdk.utility;

namespace battlenet.wow.rt.sdk.objects.Mapper
{
    internal class TooltipParamsMapper : Remapper<TooltipParams>
    {
        public override void RegisterMappers()
        {
            Register(typeof(TooltipParamsInfo), input => Map(input as TooltipParamsInfo));
        }

        internal TooltipParams Map(TooltipParamsInfo info)
        {
            if(info == null) return new TooltipParams();
            var p = new TooltipParams
            {
                TransmogItem = info.TransmogItem,
                Enchant = info.Enchant,
                Gem0 = info.Gem0,
                Set = info.Set
            };
            return p;
        }
    }
}